//
//  QMQCMApViewController.m
//  QcMedical1
//
//  Created by 仲启明 on 2016/12/26.
//  Copyright © 2016年 jiawen Du. All rights reserved.
//

#import "QMQCMApViewController.h"
#import <MAMapKit/MAMapKit.h>
#import <AMapFoundationKit/AMapFoundationKit.h>
@interface QMQCMApViewController ()

@end

@implementation QMQCMApViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    
    UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 44)];
    
    titleLabel.textAlignment = NSTextAlignmentCenter;
    
    
    titleLabel.text =  @"最没用的地图";
    
    titleLabel.font = [UIFont fontWithName:@"CloudShuiZhuGBK" size:18];
    
    self.navigationItem.titleView = titleLabel;
    
    [AMapServices sharedServices].apiKey = @"7b8077ee371c3b314e0155cad27c7ac5";
    [[AMapServices sharedServices] setEnableHTTPS:YES];
    [AMapServices sharedServices].enableHTTPS = YES;
    
    ///初始化地图
    MAMapView *_mapView = [[MAMapView alloc] initWithFrame:self.view.bounds];
    
    ///把地图添加至view
    [self.view addSubview:_mapView];
    
    //    定位当前位置,模拟器用不了
    //    _mapView.showsUserLocation = YES;
    //    _mapView.userTrackingMode = MAUserTrackingModeFollow;
}

@end
